package com.soccertgc.core.game.client.events
{
	import com.soccertgc.core.game.client.GameClient;
	
	public class GameClientErrorEvent extends GameClientEvent
	{
		
		// -------------------------------------------------------------------------------
		// FIELDS
		// -------------------------------------------------------------------------------
		
		private var _error:Error;
		
		// -------------------------------------------------------------------------------
		// CONSTRUCTOR
		// -------------------------------------------------------------------------------
		
		public function GameClientErrorEvent(c:GameClient, e:Error)
		{
			super(GameClientEvent.EVENT_ERROR, c);
			// Init
			_error = e;
		}
		
		// -------------------------------------------------------------------------------
		// PROPERTIES
		// -------------------------------------------------------------------------------
		
		public function get error():Error
		{
			return _error;
		}

	}
}